package cn.itcast.bos.web.action.base;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import cn.itcast.bos.domain.base.SubArea;
import cn.itcast.bos.service.base.SubAreaService;
import cn.itcast.bos.web.action.common.BaseAction;

public class SubAreaAction extends BaseAction<SubArea>{
	@Resource
	private SubAreaService service;
	@Action(value="addSubArea",results = {
			@Result(name = "success", type = "redirect", location = "./pages/base/sub_area.html")})
	public String addSubArea(){
		service.save(model);
		return SUCCESS;
	}
}
